using MediatR;
using UniversalAdmin.Domain.DomainEvents;
using System.Threading;
using System.Threading.Tasks;
using System;

namespace UniversalAdmin.Domain.EventHandlers;

public class UserRoleAssignedEventHandler : INotificationHandler<UserRoleAssignedEvent>
{
    public Task Handle(UserRoleAssignedEvent notification, CancellationToken cancellationToken)
    {
        Console.WriteLine($"[DomainEvent] 用户角色分配: UserId={notification.UserId}, RoleId={notification.RoleId}");
        return Task.CompletedTask;
    }
} 